﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SmartEP.Presenter;

namespace SmartDesktop
{
    public partial class Step9View : MedicalHistoryBaseView, IStep9View
    {
        public Step9View(PatientCarePresenter presenter)
            : base(presenter)
        {
            InitializeComponent();
            this.Name = "Registration Step 9";
            MainForm.BarCaption.Text = this.Name;

            this.step = 9;
            this.GroupStep = GroupStepType.MedicalHistory;
        }

        #region Property
        public bool EyePainOrSoreness
        {
            get
            {
                return rdEyePainYes.Checked;
            }
            set
            {
                rdEyePainYes.Checked = value;
            }
        }

        public bool ChronicEyeInfections
        {
            get
            {
                return rdChronicEyeYes.Checked;
            }
            set
            {
                rdChronicEyeYes.Checked = value;
            }
        }

        public bool StiesOrChalazions
        {
            get
            {
                return rdStiesOrChalazionsYes.Checked;
            }
            set
            {
                rdStiesOrChalazionsYes.Checked=value;
            }
        }

        public bool FlashesInVision
        {
            get
            {
                return rdFlashesYes.Checked;
            }
            set
            {
                rdFlashesYes.Checked = value;
            }
        }

        public bool FloatersInVision
        {
            get
            {
                return rdFloatersYes.Checked;
            }
            set
            {
                rdFloatersYes.Checked = value;
            }
        }

        public bool EyeInfections
        {
            get
            {
                return rdEyeInfectionsYes.Checked;
            }
            set
            {
                rdEyeInfectionsYes.Checked = value;
            }
        }

        public bool EyeInjuries
        {
            get
            {
                return rdEyeInjuriesYes.Checked;
            }
            set
            {
                rdEyeInjuriesYes.Checked = value;
            }
        }

        public bool EyeSurgeries
        {
            get
            {
                return rdSurgeriesYes.Checked;
            }
            set
            {
                rdSurgeriesYes.Checked = value;
            }
        }

        public bool Allergies
        {
            get
            {
                return rdAllergiesYes.Checked;
            }
            set
            {
                rdAllergiesYes.Checked = value;
            }
        }

        public bool HayFevers
        {
            get
            {
                return rdHayFeversYes.Checked;
            }
            set
            {
                rdHayFeversYes.Checked = value;
            }
        }

        public bool SinusCongestion
        {
            get
            {
                return rdSinusCongestionYes.Checked;
            }
            set
            {
                rdSinusCongestionYes.Checked = value;
            }
        }

        public bool ChronicCough
        {
            get
            {
                return rdChronicCoughYes.Checked;
            }
            set
            {
                rdChronicCoughYes.Checked = value;
            }
        }

        public bool DryThroatMouth
        {
            get
            {
                return rdDryThroatYes.Checked;
            }
            set
            {
                rdDryThroatYes.Checked = value;
            }
        }

        public bool Asthma
        {
            get
            {
                return rdAsthmaYes.Checked;
            }
            set
            {
                rdAsthmaYes.Checked = value;
            }
        }

        public bool ChronicBronchitis
        {
            get
            {
                return rdChronicBronchitisYes.Checked;
            }
            set
            {
                rdChronicBronchitisYes.Checked = value;
            }
        }

        public bool Emphysema
        {
            get
            {
                return rdEmphysemaYes.Checked;
            }
            set
            {
                rdEmphysemaYes.Checked = value;
            }
        }
        #endregion

        private void btnContinue_Click(object sender, EventArgs e)
        {
            this.presenter.DisplayNextStep(this.step);
        }

        private void btnBack_Click(object sender, EventArgs e)
        {
            this.presenter.BackToPreviousStep(this.step);
        }

    }
}
